package com.nbcio.iot.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Modbus 轮询开关与周期配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "iot.modbus.polling")
public class IotModbusPollingProperties {

    /** 是否开启轮询 */
    private boolean enabled = false;

    /** 固定轮询延时（毫秒），用于 @Scheduled fixedDelayString */
    private long fixedDelayMs = 5000;
} 